package com.aboo.users.facade;

import com.aboo.users.domain.UserPO;
import com.aboo.users.service.UserService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Component
public class UserFacade {

    @Resource
    private UserService userService;

    public List<UserPO> getUser(String pageNo, String pageSize) {
        return userService.getUser(pageNo, pageSize);
    }

    public int saveUser(UserPO user) {
        if (user == null) {
            return 0;
        }

        return userService.saveUser(user);
    }

    public int modifyUser(UserPO user) {
        return userService.modifyUser(user);
    }

}
